		<head>
			<title>Create Product</title>
			<script type="text/javascript">
			function validateForm() {
				var prodCat = document.getElementById('prodCat').value;
				var prodName = document.getElementById('prodName').value;
			  	var prodPicture = document.getElementById('prodPicture').value;
			  	var prodPrice = document.getElementById('prodPrice').value;
				var sellerComment = document.getElementById('sellerComment').value;


			 	var errorText="";
			 	
		    	if (prodCat == "") {
			    	errorText+="- Product Category is mandatory";
			    	errorText+="\n"
			    }

			    if (prodName == "") {
			    	errorText+="- Product Name is mandatory";
			    	errorText+="\n"
			    }
			    
			    if (prodPrice == "") {
			    	errorText+="- Product Price is mandatory";
			    	errorText+="\n"
			    }
 
			  
				return errorText;
			
			}
			
			function submitForm() {
			 var errorText = validateForm();
			    if (errorText=="") { 
			    	document.getElementById('myform').submit(); }
			    else {
			     	alert(errorText);
			     	return false;
			    }
			}
			
			</script>
		</head>
		<body style="text-align: center">
			<div style="text-align: left">
		
		
				<form id="myform"  action="/createProduct" method="POST">
		
					<table border="0" cellpadding="0" cellspacing="0" align="center">
						<tr>
							<td span="2"><b>Product</b></td>
						</tr>
						<tr>
							<td align="left">Product's Category*:</td>
							<td><input type="text" value="" name="prodCat" id="prodCat" /></td>
						</tr>
						<tr>
							<td align="left">Product's Name*:</td>
							<td><input type="text" value="" name="prodName" id="prodName" /></td>
						</tr>
						<tr>
							<td align="left">Product's Picture:</td>
							<td><input type="text" value="" name="prodPicture"
								id="prodPicture" /></td>
						</tr>
						<tr>
							<td align="left">Product's Price*:</td>
							<td><input type="text" value="" name="prodPrice"
								id="prodPrice" /></td>
						</tr>
						<tr>
							<td>Seller's Comment:</td>
							<td><input type="textarea" value="" name="sellerComment"
								id="sellerComment" row="5" /></td>
						</tr>
						<tr align="center">
							<td colspan="2"><br>
							*) Mandatory Field<br>
								<button id="mybutton" type="button" onclick="submitForm()">Submit</button>
								</td>
						</tr>
					</table>
				</form>
		
			</div>
		
		</body>
	</html>
